/parsing started/ {
 n = split ($3, a, "]");
 program = a[1];
}
/loading/ {
 n = split ($2, a, "(");
 if (n==2) {
   m = split(a[2], b, ")");
   if (length(jars[a[1]]) == 0) {
   	jars[a[1]] = " ";
   }
   jars[a[1]] = jars[a[1]] " " b[1]
   classes = classes " " b[1]
 } else {
   m = split(a[1], b, "]");
   gsub(".class",".java",b[1])
   java = java " " b[1]
 }
}
END {
  print ".class " program " " classes
  print ".java " program " " java
}
